package com.campus.merchant.bean.goods;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 商品状态变更入参对象
 */
@Data
@ApiModel("商品状态变更入参对象")
public class GoodsUpdateStatusBean {
    @ApiModelProperty("商品ID列表")
    @NotEmpty(message = "商品ID列表不能为空")
    private List<Integer> ids;

    @ApiModelProperty("状态：1-上架，0-下架")
    @NotNull(message = "商品状态不能为空")
    private Integer status;

}